package org.ex;
//静态导入
import static java.lang.Math.PI;
import static java.lang.Math.random;

public class Test {
    //类变量，
    public static int age = 18;
    public static void main(String[] args) {

        Test t = new Test();
        System.out.println(t.age);//18

        Test t2 = new Test();
        t2.age = 28;
        Test.age = 100;
        System.out.println(t2.age);//100

        System.out.println(t.age);//100




        System.out.println(PI);
        for (int i = 0; i < 5; i++) {
            //System.out.println(random());
            System.out.println(rand());
        }
    }

    static double rand(){
        return random();
    }
}
